﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using WuYuHotel.SQLConn;
namespace WuYuHotel.WX_AccToken
{
    public class WxPayException:Exception
    {
        BaseDao basedao = new BaseDao();
        public WxPayException(string msg) : base(msg)
        {
            Dictionary<string, object> datalog = new Dictionary<string, object>();
            datalog.Add("type", int.Parse("10"));
            datalog.Add("OpTime", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
            datalog.Add("OpID", "0");
            datalog.Add("OpLog", msg.Replace("'", "''").Replace(" ", ""));
            basedao.save("T_LOG", datalog);

        }
    }
}